-- GENERATED SPELL FOR [Ranger] --


function spell0_8564(pUnit, Event) --@Concussive Shot,n/a--
pUnit:FullCastSpellOnTarget(17174,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8564', 3329, 1)
end

function spell1_8564(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(14443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8564', 624, 1)
end

function spell2_8564(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8564', 627, 1)
end

function Sorts_8564(pUnit, Event)
local choix_sorts_8564 = math.random(0, 2)
if choix_sorts_8564 == 0 then
pUnit:RegisterEvent('spell0_8564', 1, 1)
end
if choix_sorts_8564 == 1 then
pUnit:RegisterEvent('spell1_8564', 1, 1)
end
if choix_sorts_8564 == 2 then
pUnit:RegisterEvent('spell2_8564', 1, 1)
end
end

function mob8564_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8564', math.random(1500, 3000), 1)
end

function mob8564_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8564_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8564_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8564, 1, 'mob8564_Action')
RegisterUnitEvent(8564, 2, 'mob8564_Leave')
RegisterUnitEvent(8564, 3, 'mob8564_Kill')
RegisterUnitEvent(8564, 4, 'mob8564_Die')
